package cn.onlineoedering.user.service;

import java.util.List;

import cn.onlineoedering.user.entity.GeneralUser;

/**
 * @author Administrator
 *服务层对象
 */
public interface UserService {
	public void saveToXml(GeneralUser user);
	
	/**
	 * @param 保存generalUser对象
	 */
	public void save(GeneralUser generalUser);
	
	/**
	 * @param 根据name查找指定对象
	 */
	public GeneralUser queryByName(String name);
	
	/**
	 * @param 更新generalUser
	 */
	public void update (GeneralUser generalUser);
	
	/**
	 * @return查找所有用户
	 */
	public List<GeneralUser> queryAll();
	
	/**
	 * @param 根据id删除用户
	 */
	public void delete(long id);
}
